/**
 * Created by PVer on 2019-12-07.
 */
import axios from '@/libs/api.request'

export const del = (id) => {
  return axios.request({
    url: 'Subject/del',
    method: 'get',
    params:{id:id}
  })
};
export const get = (id) => {
  return axios.request({
    url: 'Subject/get',
    method: 'get',
    params:{id:id}
  })
};
export const save = (data) => {
  return axios.request({
    url: 'Subject/save',
    method: 'post',
    data
  })
};
export const bind = (data) => {
  return axios.request({
    url: 'Subject/bind',
    method: 'post',
    data
  })
};
export const unbind = (data) => {
  return axios.request({
    url: 'Subject/unbind',
    method: 'post',
    data
  })
};
export const getList = () => {
  return axios.request({
    url: 'Subject/list',
    method: 'get'
  })
};
export const boundList = (params) => {
  return axios.request({
    url: 'Subject/boundList',
    method: 'get',
    params:params
  })
};
